package liangtWorkSpace.factory.abstractFactory;

/**
 * @ClassName FactoryMain
 * @Description : 功能说明
 * @Author : LiangT
 * @Date : 2020/4/13 18:31
 */

/**
 * 工厂模式
 */
public class FactoryMain {
    public static void main(String[] args) {
        Car car = new Car();
        car.go();
        Gun gun = new Gun();
        gun.shoot();
        Bread bread = new Bread();
        bread.eat();
    }
}
